package com.jx.driving.transmission;

import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.ByteAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

/**
 * 立即拍照
 * 
 * @author shenliuyang
 *
 *         2016年8月15日下午1:57:30
 */
@TerminalAnnotation
public class Terminal0x8301Transmission extends TimeTerminalTransmissionMessage {
    @ByteAnnotation(order = 1)
    private short uploadType;// 上传模式1：自动请求上传255：停止拍摄并上传图片
    @ByteAnnotation(order = 2)
    private short cameraChannel;// 摄像头通道0：自动1~255：表示通道号
    /**
     * 0x01：320×240； 0x02：640×480； 0x03：800×600； 0x04：1024×768；
     * 0x05：176×144[Qcif]； 0x06：352×288[Cif]； 0x07：704×288[HALF
     * D1]；0x08：704×576[D1]； 注：终端若不支持系统要求的分辨率， 则取最接近的分辨率拍摄并上传
     */
    @ByteAnnotation(order = 3)
    private short size;// 图片尺寸

    public short getUploadType() {
	return uploadType;
    }

    public void setUploadType(short uploadType) {
	this.uploadType = uploadType;
    }

    public short getCameraChannel() {
	return cameraChannel;
    }

    public void setCameraChannel(short cameraChannel) {
	this.cameraChannel = cameraChannel;
    }

    public short getSize() {
	return size;
    }

    public void setSize(short size) {
	this.size = size;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0x8301Transmission [uploadType=").append(uploadType).append(", cameraChannel=")
		.append(cameraChannel).append(", size=").append(size).append("]");
	return builder.toString();
    }

}
